The input system used within the component. More...
Public Member Functions | |
InputSystem () | |
~InputSystem () | |
bool | initialize () |
BaseKeyHandler * | getKeyHandler () const |
BaseMouseHandler * | getMouseHandler () const |
IDirectInput8 * | getDirectInputSystem () const |
void | setKeyHandler (BaseKeyHandler *handler) |
void | setMouseHandler (BaseMouseHandler *handler) |
void | update () |
The input system used within the component.
Note that it is highly probable this system will move into its own component in a near future.
nkGraphics::InputSystem::InputSystem | ( | ) |
Constructor. In theory, should not be called from external code. The system is currently made available through the MainSystem.
nkGraphics::InputSystem::~InputSystem | ( | ) |
Destructor.
bool nkGraphics::InputSystem::initialize | ( | ) |
Initializes the system, to make it ready for updating.
BaseKeyHandler* nkGraphics::InputSystem::getKeyHandler | ( | ) | const |
BaseMouseHandler* nkGraphics::InputSystem::getMouseHandler | ( | ) | const |
IDirectInput8* nkGraphics::InputSystem::getDirectInputSystem | ( | ) | const |
void nkGraphics::InputSystem::setKeyHandler | ( | BaseKeyHandler * | handler | ) |
Sets the key handler to use when updating.
handler | The handler to use. External code is responsible for freeing it once it is unneeded. |
void nkGraphics::InputSystem::setMouseHandler | ( | BaseMouseHandler * | handler | ) |
Sets the mouse handler to use when updating.
handler | The handler to use. External code is responsible for freeing it once it is unneeded. |
void nkGraphics::InputSystem::update | ( | ) |
Updates the input structures.